package test.com.sms.selenium.singlepoint.util;

import org.openqa.selenium.By;

import test.com.sms.selenium.framework.SeleniumPageUtil;
import test.com.sms.selenium.util.SeleniumUtil;

public class SpInventoryRequisitionEditPageUtil extends SeleniumPageUtil {
	public final static By IRE_LINK_PROCESS = By.xpath("//*[@id='divApprovalHistory']/table/tbody/tr/td/a[text()='Process']");
	public final static By IRE_RADIO_APPROVE = By.id("chkApproved");
	public final static By IRE_RADIO_REJECT = By.id("chkRejected");
	public final static By IRE_TEXT_NOTES = By.id("ctl44_txtMgrNotes");
	public final static By IRE_LINK_SUBMIT_SAVE = By.id("ctl44_lnkMgrApprovalSave");
	public final static By IRE_TD_STATUS = By.xpath("//*[@id='divApprovalHistory']/table/tbody/tr[2]/td[4]/span");
	
	public static void waitForPageToLoad(){
		SeleniumUtil.selectDefaultContent();
		SeleniumUtil.waitOnElements(new By[]{
				IRE_TD_STATUS
		});
	}
}
